/**
*主框架内容
* @type {*[]}
*/

const mainFrame = [
    { 
        path: '',
        name: 'index-tabbar',
        component: () => import('../views/index-tabbar.vue'),
        children: [
            { 
                path: '',
                redirect: {name: 'home'}
            },
            { 
                path: '/home',
                name: 'home',
                component: () => import("../views/index-home.vue"),
                meta: { 
                    title: '首页',
                    auth: false
                }
            },
            {
                path: '/my',
                name: 'my',
                component: () => import("../views/index-my.vue"),
                meta: { 
                    title: '我的',
                    auth: true
                }
            },
            {
                path: '/market',
                name: 'market',
                component: () => import("../views/index-market.vue"),
                meta: { 
                    title: '市场',
                    auth: false
                }
            },
            { 
                path: '/collection',
                name: 'collection',
                component: () => import("../views/index-collection.vue"),
                meta: { 
                    title: '藏品',
                    auth: true
                }
            }
        ]
    }
]

const secondaryFrame = [
    { 
        path: '/login',
        name: 'login',
        component: () => import("../views/login/index-login.vue"),
        meta: { 
            title: '登录',
            auth: false
        }
    },
    { 
        path: '/search',
        name: 'search',
        component: () => import("../views/index-search.vue"),
        mete: { 
            title: '搜索',
            auth: false
        }
    },
    {
        path: '/goods/details/:id',
        name: 'goodsDetails',
        component: () => import("../views/goods/goodsDetails.vue"),
        meta: { 
            title: '商品详情',
            auth: false
        }
    },
    { 
        path: '/set',
        name: 'set',
        component: () => import("../views/set/index-set.vue"),
        meta: { 
            title: '设置'
        }
    },
    {
        path: '/collection/:id',
        name: 'collectionDetail',
        component: () => import("../views/collection/collection-detail.vue"),
        meta: {
            title: '收藏详情',
            auth: true
        }
    },
    { 
        path: '/agree',
        name: 'agree',
        component: () => import("../views/login-agree.vue"),
        meta: { 
            title: '用户协议与隐私政策',
            auth: false
        }
    },
    {
        path: '/register',
        name: 'register',
        component: () => import("../views/index-register.vue"),
        meta: { 
            title: '账号注册',
            auth: false
        }
    },
    { 
        path: '/findpass',
        name: 'findpass',
        component: () => import("../views/find-pass.vue"),
        meta: { 
            title: '找回密码',
            auth: false
        }
    },
    { 
        path: '/invit',
        name: 'invit',
        component: () => import('../views/my-invit.vue'),
        meta: { 
            title: '我的邀请',
            auth: true
        }
    },
    { 
        path: '/wallet',
        name: 'wallet',
        component: () => import('../views/index-wallet.vue'),
        meta: { 
            title: '钱包',
            auth: true
        }
    },
    { 
        path: '/orderlist',
        name: 'orderlist',
        component: () => import('../views/order/order-index.vue'),
        meta: { 
            title: '订单列表',
            auth: true
        }
    },
    { 
        path: '/orderdetail/:id',
        name: 'orderdetail',
        component: () => import('../views/order/order-detail.vue'),
        meta: { 
            title: '订单详情',
            auth: true
        }
    },
    { 
        path: '/givelist',
        name: 'givelist',
        component: () => import('../views/give/give-index.vue'),
        meta: {
            title: '转赠记录',
            auth: true
        }
    },
    {
        path: '/givedetail/:id',
        name: 'givedetail',
        component: () => import('../views/give/give-detail.vue'),
        meta: { 
            title: '转赠详情',
            auth: true
        }
    },
    { 
        path: '/marketdetail/:id',
        name: 'marketGoodsDetails',
        component: () => import('../views/market/market-detail.vue'),
        meta: { 
            title: '商品详情',
            auth: true
        }
    },
    { 
        path: '/loginInfo',
        name: 'loginInfo',
        component: () => import('../views/myinfo/login-info.vue'),
        meta: { 
            title: '登录信息',
            auth: false
        }
    },
    { 
        path: '/auth',
        name: 'auth',
        component: () => import('../views/myinfo/to-auth.vue'),
        meta: { 
            title: '实名认证',
            auth: false
        }
    },
    { 
        path: '/notice',
        name: 'notice',
        component: () => import('../views/mess/notice-info.vue'),
        meta: { 
            title: '系统通知',
            auth: false
        }
    },
    { 
        path: '/noticeDetail/:id',
        name: 'noticeDetail',
        component: () => import('../views/mess/notice-detail.vue'),
        meta: {
            title: '通知详情',
            auth: false
        }
    },
    { 
        path: '/account_menu',
        name: 'account_menu',
        component: () => import('../views/account/account-index.vue'),
        meta: { 
            title: '账户与安全',
            auth: 'false'
        }
    },
    { 
        path: '/payPassWord',
        name: 'payPassWord',
        component: () => import('../views/account/up-password.vue'),
        meta: { 
            title: '密码设置',
            auth: true
        }
    },
    { 
        path: '/catchlogin',
        name: 'catchlogin',
        component: () => import('../views/login/code-login.vue'),
        meta: { 
            title: '登录',
            auth: false
        }
    }
]

const my_test = [
    { 
        path: '/test',
        name: 'test',
        component: () => import("../assets/testPage/my-test.vue")
    }
]

export default [...mainFrame, ...secondaryFrame, ...my_test]